/*
 *  account.h - Account management structures
 *  Copyright (c) 2005 Derek Ingrouville (dergro@users.sourceforge.net)
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Library General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef _ACCOUNT_H
#define _ACCOUNT_H

#include "message.h"
#include "events.h"
#include "contactlist.h"
#include "socket.h"

typedef struct _MsnAccount
{
    char *passport;
    char *password;
    char *nickname;
   
    struct
	{
		char *kv;           /* Needed for hotmail login */
		char *sid;          /* Needed for hotmail login */
		char *mspauth;      /* Needed for hotmail login */
		char *client_ip;    /* Address we connected from */
		int client_port;    /* Port we connected from */
	} profile;

    MsnStatus status;
} MsnAccount;

MsnAccount *msn_account_new ();

int msn_account_set_passport (MsnAccount *acct, const char *passport);
int msn_account_set_password (MsnAccount *acct, const char *password);
int msn_account_set_nickname (MsnAccount *acct, const char *nickname);
int msn_account_set_profile (MsnAccount *acct, MsnMessage *profilemsg);

void msn_account_free (MsnAccount *acct);

#endif /* _ACCOUNT_H */
